package com.xdy.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;
import javax.jms.Topic;

/**
 * User: xuedaiyao
 * Date: 2017/9/6
 * Time: 11:58
 * Description:
 */

@Configuration
public class ActiveMqConfig {

    @Bean
    public Queue queue() {
        return new ActiveMQQueue("xdy.queue");
    }

    @Bean
    public Topic topic() {
        return new ActiveMQTopic("xdy.topic");
    }
}

